extends "../jiluofu-3/jiluofu-3.gd"


var baseId = ""
var upText1 = "重击冰魄伤害提高100%"
var upText2 = "重击冰魄赋予的霜冻层数+3"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("<固化>每10秒引爆所有敌人的<漏水>效果，使剩余伤害立即结算", "损害放大")

func sunhaiFD():
	for i in getAllChas(1):
		var bf = i.hasBuff("b_louShui")
		if bf != null:
			bf.allDmg()

var flag = 0
func _upS():
	._upS()
	flag += 1
	if flag >= 10:
		sunhaiFD()
		flag = 0

func _onBattleEnd():
	._onBattleEnd()
	flag = 0

func upgrade():
	.upgrade()
	if upgraded == 1:
		p2 = 2
	if upgraded == 2:
		p22 = 7